import { EnumStatusCode } from "@shared/constant/enum";
import { Request, Response, NextFunction } from "express";
const notFoundMiddleware = (
  req: Request,
  res: Response,
  next: NextFunction
) => {
  res.status(EnumStatusCode.NOT_FOUND).json({
    code: EnumStatusCode.NOT_FOUND,
    message: "接口不存在",
    data: null,
  });
};

export { notFoundMiddleware };
